JFLAGS =
JC = javac

all: classes
	jar -cfe ../../RSParser.jar Main *.class

.SUFFIXES: .java .class
.java.class:
	$(JC) $(JFLAGS) $*.java

CLASSES = \
		TeamParser.java \
		Parser.java \
		GameParser.java \
		PeopleParser.java \
		PlayParser.java \
		RosterParser.java \
        Main.java

default: classes

classes: $(CLASSES:.java=.class)

.PHONY: clean
clean:
	$(RM) *.class
	$(RM) ../../RSParser.jar
